package com.blackline.UI.Consolidations;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

/**
 * @author XBO
 * @version Feb, 2013
 * <p>This page is after logging in with Preparer, clicking CIM and then click Edit link for an item.
 * Please refer to UI.Reconciliation(CIM).png in doc-files.<br>
 */
public class Reconciliation_CIM {
	/**
	 * Add Supporting Item item
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_GLItems1_lbAddItem")
	public WebElement Add_Supporting_Item_link;

	/**
	 * Supporting Items Up/Down arrow icon (Up arrow and Down arrow use the same ID)
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_GLItems1_ibItems")
	public WebElement Supporting_Items_UPorDown_arrowIcon;
	
	
	/**
	 * Supporting Items Up arrow icon, means the Supporting Items table is expanded.
	 */
	@FindBy (name = "//input[@src='../../Images/collapse.gif' and @id='ctl00_ctl00_contentBody_cphMain_GLItems1_ibItems']")
	public WebElement Supporting_Items_Up_arrowIcon;
	
	/**
	 * Supporting Items Down arrow icon, means the Supporting Items table is collapsed.
	 */
	@FindBy (xpath = "//input[@src='../../Images/expand.gif' and @id='ctl00_ctl00_contentBody_cphMain_GLItems1_ibItems']")
	public WebElement Supporting_Items_Down_arrowIcon;
	
	/**
	 * Table Row ("tr" element) of 1st item in Supporting Items table;
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_GLItems1_recItemsGrid_ctl00__0")
	public WebElement tableRowOf1stSupportingItem;
	
	/**
	 * Edit icon of 1st Supporting Item
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_GLItems1_recItemsGrid_ctl00_ctl04_EditLink")
	public WebElement Edit_iconOf1stSupportingItem;
	
	/**
	 * Document icon of 1st Supporting Item
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_GLItems1_recItemsGrid_ctl00_ctl04_imgHasDocuments")
	public WebElement Document_iconOf1stSupportingItem;
	
	/**
	 * Comment icon of 1st Supporting Item
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_GLItems1_recItemsGrid_ctl00_ctl04_imgHasComments")
	public WebElement Comment_iconOf1stSupportingItem;
	
	
	/**
	 * Texts of 1st Supporting Item
	 */
	@FindBy (xpath = "//tr[@id='ctl00_ctl00_contentBody_cphMain_GLItems1_recItemsGrid_ctl00__0']/td[9]")
	public WebElement Texts_of1stSupprtingItem;
	
	
	/**
	 * Table Row ("tr" element) of 2nd item in Supporting Items table;
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_GLItems1_recItemsGrid_ctl00__1")
	public WebElement tableRowOf2ndSupportingItem;
	
	/**
	 * Edit icon of 2nd Supporting Item
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_GLItems1_recItemsGrid_ctl00_ctl06_EditLink")
	public WebElement Edit_iconOf2ndSupportingItem;
	
	
	/**
	 * Texts of 2nd Supporting Item
	 */
	@FindBy (xpath = "//tr[@id='ctl00_ctl00_contentBody_cphMain_GLItems1_recItemsGrid_ctl00__1']/td[9]")
	public WebElement Texts_of2ndSupprtingItem;
	
	
	
	/**
	 * Add Bank Item link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_BankItems1_lbAddBankItem")
	public WebElement Add_Bank_Item_link;
	
	/**
	 * Save button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_SaveCertifyButtons1_btnSave")
	public WebElement Save_button;
	
	/**
	 * Add Comment link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_Comments1_lbAddComment")
	public WebElement Add_Comment_link;

	/**
	 * Comments Up/Down arrow icon (Up arrow and Down arrow use the same ID)
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_Comments1_ibComments")
	public WebElement Comments_UPorDown_arrowIcon;
	
	
	/**
	 * Table Row ("tr" element) of 1st item in Comments table;
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_Comments1_commentsGrid_ctl00__0")
	public WebElement tableRowOf1stComment;
	
	/**
	 * Edit icon of 1st Comment
	 */
	@FindBy (xpath = "//tr[@id='ctl00_ctl00_contentBody_cphMain_Comments1_commentsGrid_ctl00__0']/td[1]")
	public WebElement Edit_iconOf1stComment;
	

	/**
	 * Texts of 1st Comment item
	 */
	@FindBy (xpath = "//tr[@id='ctl00_ctl00_contentBody_cphMain_Comments1_commentsGrid_ctl00__0']/td[5]")
	public WebElement Texts_of1stComment;
	
	
	/**
	 * Table Row ("tr" element) of 2nd item in Comments table;
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_Comments1_commentsGrid_ctl00__1")
	public WebElement tableRowOf2ndComment;
	
	/**
	 * Edit icon of 2nd Comment item
	 */
	@FindBy (xpath = "//tr[@id='ctl00_ctl00_contentBody_cphMain_Comments1_commentsGrid_ctl00__1']/td[1]")
	public WebElement Edit_iconOf2ndComment;
	

	/**
	 * Texts of 2nd Comment item
	 */
	@FindBy (xpath = "//tr[@id='ctl00_ctl00_contentBody_cphMain_Comments1_commentsGrid_ctl00__1']/td[5]")
	public WebElement Texts_of2ndComment;
		
	
	
	
	
	
	/**
	 * Supporting Documents Up/Down arrow icon (Up arrow and Down arrow use the same ID)
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_Documents1_ibDocuments")
	public WebElement Supporting_Documents_UPorDown_arrowIcon;
	
	
	/**
	 * Table Row ("tr" element) of 1st item in Supporting Documents table;
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_Documents1_docsGrid_ctl00__0")
	public WebElement tableRowOf1stSupportingDocument;
	
	/**
	 * Edit icon of 1st Supporting Document
	 */
	@FindBy (xpath = "//tr[@id='ctl00_ctl00_contentBody_cphMain_Documents1_docsGrid_ctl00__0']/td[1]")
	public WebElement Edit_iconOf1stSupportingDocument;
	
	/**
	 * View Document icon of 1st Supporting Document
	 */
	@FindBy (xpath = "//tr[@id='ctl00_ctl00_contentBody_cphMain_Documents1_docsGrid_ctl00__0']/td[2]")
	public WebElement View_Document_iconOf1stSupportingDocument;
	
	/**
	 * Document Name of 1st Supporting Document
	 */
	@FindBy (xpath = "//tr[@id='ctl00_ctl00_contentBody_cphMain_Documents1_docsGrid_ctl00__0']/td[5]")
	public WebElement Document_Name_of1stSupportingDocument;
	
	

	/**
	 * Description of 1st Supporting Document item
	 */
	@FindBy (xpath = "//tr[@id='ctl00_ctl00_contentBody_cphMain_Comments1_commentsGrid_ctl00__0']/td[6]")
	public WebElement Description_of1stSupportingDocument;
	
	/**
	 * Add Document link
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_Documents1_lbAddDoc")
	public WebElement Add_Document_link;
	
	/**
	 * Certify button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_SaveCertifyButtons1_btnSaveCertify")
	public WebElement Certify_button;
	
	/**
	 * Reject button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_SaveCertifyButtons1_btnReject")
	public WebElement Reject_button;
	
	
	/**
	 * Cancel button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_SaveCertifyButtons1_btnCancel")
	public WebElement Cancel_button;
	
	
	/**
	 * Reason_Code_DropdownList
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_SaveCertifyButtons1_ddlDecertificationReasonCode")
	public WebElement Reason_Code_DropdownList;
	
	/**
	 * Continue_Button
	 */
	@FindBy (id = "ctl00_ctl00_contentBody_cphMain_SaveCertifyButtons1_btnPSubmit2")
	public WebElement Continue_Button;
}
